package test;

public class Demo5 {
    public static void main(String[] args) {
        Thread thread = new Thread(()->{
            while(true){
                System.out.println("Hello Thread");
            }
        });
        thread.start();
        while(true){
            System.out.println("Hello main");
        }
    }
}
